package com.hxut.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.stereotype.Component;

@TableName("tbl_book")
@Data
@Component
@ApiModel(value = "图书实体",description = "图书实体类")
public class Book {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "图书id")
    private int id;
    @ApiModelProperty(value = "图书类型")
    private String type;
    @ApiModelProperty(value="图书名称")
    private String name;
    @ApiModelProperty(value = "图书描述")
    private String description;
    
}
